#ifndef CHELPER_H
#define CHELPER_H

#include <QStringList>
#include <QObject>
#include <QDateTime>

#define DATETIME_FMT "yyyy/MM/dd hh:mm:ss"

class CHelper
{
public:
    static QStringList localIPv4List();
    static QStringList serialportList();
    static void recursiveInstallEventFilter(QObject *pObject); //递归安装所有子孙事件
    static void recursiveResetUIText(QObject *pObject);
    static QString currentDateTime();
    static QDateTime dateTime(QString strDateTime);
    static QByteArray str2ByteArray(QString &strText);
    static QString byteArray2Str(QByteArray &byteArr);
    static QString createUuid();
};

#endif // CHELPER_H
